//
//  HYBaseHandler.h
//  Around
//
//  Created by 华谕 on 2017/6/13.
//  Copyright © 2017年 HUYU. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpTool.h"

//处理理事件成功
typedef void(^SuccessBlock)(id obj);

//处理事件失败
typedef void(^FailedBlock)(NSError *error);

typedef enum{
    GET,
    POST
} RequestType;


@interface HYBaseHandler : NSObject

//注册请求验证码/user/code4register
+ (void)requestCodeRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户注册
+ (void)requestRegisterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//地区/c/area/findAll
+ (void)requestAreaParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//登录/c/userLogin/login
+ (void)requestUserLoginParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//退出登录 /c/userLogin/logout
+ (void)requestUserLogoutParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// /c/userLogin/updatePsw 修改密码, [type]{2：忘记密码，3：修改密码，4：修改支付密码：5：修改回购密码
+ (void)requestUpdatePswParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//用户信息 /c/user/userInfo
+ (void)requestGetUserInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改用户信息
+ (void)requestUpdateInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//修改手机号/c/user/updatePhone
+ (void)requestUpdatePhoneParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//账单列表
+ (void)requestUserWalletInfoListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//文件上传 /c/file/upload
+ (void)requestFileUploadParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用设置 /c/systemConfig/findByKey
+ (void)requestSystemConfigParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息反馈 /c/msgFeedback/save
+ (void)requestmsgFeedbackParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;


//银行列表 /c/bank/findAll
+ (void)requestBankListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加银行卡 /c/bankCard/add
+ (void)requestAddBankCarParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行卡列表 /c/bankCard/findAll
+ (void)requestBankCarListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//新增地址 /c/address/save
+ (void)requestSaveAddressParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//地址列表 /c/address/findAll
+ (void)requestAddressListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//设为默认 /c/address/setDefault
+ (void)requestAddresssetDefaultParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//删除 /c/address/delete
+ (void)requestAddressDeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//分销统计 /c/distribution/myDistribution
+ (void)requestMyDistrionParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//分销成员列表 /c/distribution/findAllWithPage
+ (void)requestDistriListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//协议 /c/agreement/findAll
+ (void)requestagreementParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//体验馆 /c/experienceShop/findAll
+ (void)requestExperienceShopParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//递送需求 /c/deliveryDemand/create
+ (void)requestDeliveryDemandParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//技术区商品分类 /c/productType/findAll
+ (void)requestProductTypeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//技术区商品详情 /c/product/select
+ (void)requestProductSelectParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//添加到购物车或修改 /c/shoppingCart/save
+ (void)requestAddShoppingCartParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//技术区首页 /c/homePage/technology
+ (void)requestTechnologyHomeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//购物车列表 /c/shoppingCart/page
+ (void)requestShoppingCartListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//购物车删除 /c/shoppingCart/deleteByIds
+ (void)requestShoppingCartDeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//下单 /c/orderMaster/create
+ (void)requestOrderMasterParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付 /c/walletPay/oneIntegralPay
+ (void)requestWalletPayParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//计算价格 /c/orderMaster/calPrice
+ (void)requestCalPricParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//订单列表 /c/orderMaster/page
+ (void)requestOrderListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//取消订单 /c/orderMaster/cancel
+ (void)requestOrderCancelParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//确认订单 /c/orderMaster/confirm
+ (void)requestOrderSoureParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// 催促发货
+ (void)requestOrderUrgeDeliverParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//公钥 /c/rsaKey/publicKey
+ (void)requestPublicKeyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//默认邀请码 /c/systemConfig/findByKey
+ (void)requestFindByKeyParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付
+ (void)requestPayParmers:(NSDictionary *)parmers PayType:(NSInteger)payType Success:(SuccessBlock)success failed:(FailedBlock)failed;

//充值 /c/recharge/create
+ (void)requestRechargeCreatParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//钱包 SERVER_walletInfo
+ (void)requestUserWalletParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//提现 /c/withdraw/withdraw
+ (void)requestUserWithdrawParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//二维码 /c/qrCode/userRegQrCode
+ (void)requestUserRegQrCodeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//生活区 /c/homePage/life
+ (void)requestLifeHomePageParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

// 商品列表
+ (void)requestLifeGoodsListParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//小分类 /c/productType/findAll
+ (void)requestLifeproductTypeParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//商品所有小分类 /c/product/byParentProductTypeId
+ (void)requestLifeByParentProductTypeIdParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//商品搜索
+ (void)requestGoodsSearchParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//数量提醒 /c/orderMaster/numRemind
+ (void)requestOrdernumRemindParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//查看物流 /c/orderMaster/expressInfo
+ (void)requestOrderExpressInfoParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//申请退款 /c/refund/confirm
+ (void)requestOrderRefundConfirmParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//银行卡删除
+ (void)requestBankCarDeleteParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//消息列表 /c/msgPush/page
+ (void)requestMsgPushParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//支付通道 /c/paymentChannel/create
+ (void)requestPaymentChannelParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//审核 /c/freeLogin/iosCheckVersionPass
+ (void)requestCheckVersionParmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用表单
+ (void)requestWithTheFormUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;

//通用Json
+ (void)requestWithJsonUrl:(NSString *)url Parmers:(NSDictionary *)parmers Success:(SuccessBlock)success failed:(FailedBlock)failed;


@end
